<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            width: 100vw;
            height: 100vh;

        }

        .box {
            width: 50%;
            margin: 50px auto;
            border: 1px solid #ddd;
            height: 500px;
        }

        .box {
            display: flex;

        }

        .box div {
            flex: 1;
            background-color: red;
            cursor: pointer;
            transition: 2s ease-out;
            transform: rotateY(45deg);
        }

        .box div:first-child {
            background-color: green;
        }

        .box div:last-child {
            background-color: aqua;
        }

        .box div:hover {
            transform: perspective(900px) scale3d(.5, .5, 2) translate3d(0px, 0px, 150px);
            z-index: 2;
            width: 200%;
        }

        .box div:hover::after {
            content: '';
            position: absolute;
            background: #000;
            width: 100%;
            height: 100%;
            z-index: -1;
            box-shadow: 0 0 5px rgba(0, 0, 0, .3);
        }

        div img {
            width: 100%;
        }
    </style>
</head>

<body>
    <div class="box">
        <div><img
                src="https://ts2.cn.mm.bing.net/th?id=OIP-C.E_YOB4olh3UFuWSTJl4vhgHaE6&w=306&h=203&c=8&rs=1&qlt=90&o=6&dpr=1.25&pid=3.1&rm=2"
                alt=""></div>
        <div><img
                src="https://ts1.cn.mm.bing.net/th?id=OIP-C.Veeds6oBwXB179ouoTzzcgHaEK&w=333&h=187&c=8&rs=1&qlt=90&o=6&dpr=1.25&pid=3.1&rm=2"
                alt=""></div>
        <div><img
                src="https://ts4.cn.mm.bing.net/th?id=OIP-C.4oQwUFbM039B3kuBrF-qbgHaEt&w=313&h=199&c=8&rs=1&qlt=90&o=6&dpr=1.25&pid=3.1&rm=2"
                alt=""></div>
    </div>
</body>

</html>